package ke03;

public class UeberweisungTest {

	public static void main(String[] args) throws InterruptedException {
		
		Konto k1 = new Konto(1, 500);
		Konto k2 = new Konto(2, 200);
		Konto k3 = new Konto(3, 400);
		
		Ueberweisung ue1 = new Ueberweisung(k1, k2, 100); 
		Ueberweisung ue2 = new Ueberweisung(k2, k1, 50); 
		
		new Thread(ue1).start();
		new Thread(ue2).start();
		
		Thread.sleep(3000);
		
		System.out.println(k1);
		System.out.println(k2);
	}
}
